<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/app/common/header.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>微企名单管理</title>
		<link href="<%=basePath%>/app/main/style/inputpage.css"
			rel="stylesheet" type="text/css" />
	</head>

	<body>
		<form id="inputForm"
			action="<%=basePath%>app/sys/comp/comp!save" method="post">
			<input type="hidden" name="id" value="${id}" />
			<table width="100%" border="0" id="topSpace">
				<tr>
					<td></td>
				</tr>
			</table>
			<div id="edit">
				<table border="0" align="center" cellpadding="2" cellspacing="1"
					id="tableAddCon" width="90%">
					<tr>
						<th colspan="4" class="stitle">
							微企名单信息
						</th>
					</tr>
					<tr>
						<th width='15%'>姓名:</th>
						<td width='35%'>
							<input class="nestedText" type="text" name="name" value="${name}"  />
		<span style="font-size:12px;color:red"><s:fielderror fieldName="msg.name" /></span>&nbsp;
						</td>
						<th width='15%'>性别:</th>
						<td width='35%'>
							<s:radio name="gender" list="#{'男':'男','女':'女'}" ></s:radio>
						</td>
					</tr>
					
					<tr>
						<th width='15%'>年龄:</th>
						<td width='35%'>
							<input id="age" class="nestedText" type="text" name="age" value="${age}"  />
							<span style="font-size:12px;color:red"><s:fielderror fieldName="msg.age" /></span>&nbsp;
						</td>
						<th width='15%'>学历:</th>
						<td width='35%'>
							<input class="nestedText" type="text" name="degree" value="${degree}"  />&nbsp;
						</td>
					</tr>
					
					<tr>
						<th width='15%'>身份证号:</th>
						<td width='35%'>
							<input class="nestedText" type="text" id="idCard" name="idCard" value="${idCard}"  />
						</td>
						<th width='15%'>属九类人群类别:</th>
						<td width='35%'>
							<input class="nestedText" type="text" name="personType" value="${personType}"  />&nbsp;
						</td>
					</tr>
					
					<tr>
						<th width='15%'>拟从事行业:</th>
						<td width='35%'>
							<input class="nestedText" type="text" name="industry" value="${industry}"  />
						</td>
						<th width='15%'>预先核准企业名称:</th>
						<td width='35%'>
							<input class="nestedText" type="text" name="compName" value="${compName}"  />
<span style="font-size:12px;color:red"><s:fielderror fieldName="msg.compName" /></span>&nbsp;
						</td>
					</tr>
					
					<tr>
						<th width='15%'>经营地址:</th>
						<td width='35%'>
							<input class="nestedText" type="text" name="address" value="${address}"  />
						</td>
						<th width='15%'>顾工人数:</th>
						<td width='35%'>
							<input class="nestedText" type="text" name="empCount" value="${empCount}"  />&nbsp;
						</td>
					</tr>
					
					<tr>
						<th width='15%'>申请人是否为个体工商户或已注销但未满一年:</th>
						<td width='35%'>
							<s:radio name="isGeti" list="#{'是':'是','否':'否'}" ></s:radio>
						</td>
						<th width='15%'>申请企业注册资金(投资总额)(万元):</th>
						<td width='35%'>
							<input class="nestedText" type="text" name="zhuceMoney" value="${zhuceMoney}"  />&nbsp;
						</td>
					</tr>
					
					<tr>
						<th width='15%'>申请人投资额（万元）:</th>
						<td width='35%'>
							<input class="nestedText" type="text" name="touzhiMoney" value="${touzhiMoney}"  />
						</td>
						<th width='15%'>拟办企业类型:</th>
						<td width='35%'>
							<s:select name="compType" list="#{'有限公司':'有限公司','个人独资':'个人独资','合伙企业':'合伙企业'}"></s:select>
						</td>
					</tr>
					
					<tr>
						<th width='15%'>行业划分:</th>
						<td width='35%'>
							<s:select name="industryType" list="#{'普通':'普通','区级重点':'区级重点','市级重点':'市级重点'}"></s:select>
						</td>
						<th width='15%'>开户银行:</th>
						<td width='35%'>
							<input class="nestedText" type="text" id="bankAddress" name="bankAddress" value="${bankAddress}"  />&nbsp;
						</td>
					</tr>
					
					<tr>
						<th width='15%'>银行账号:</th>
						<td width='35%'>
							<input class="nestedText" type="text" id="bankNo" name="bankNo" value="${bankNo}"  />
						</td>
						<th width='15%'>自投资金(万元):</th>
						<td width='35%'>
							<input class="nestedText" type="text" name="selfTouzhiMoney" value="${selfTouzhiMoney}"  />&nbsp;
						</td>
					</tr>
					
					<tr>
						<th width='15%'>政府补助资金（万元）:</th>
						<td width='35%'>
							<input class="nestedText" type="text" name="govBuzhuMoney" value="${govBuzhuMoney}"  />
						</td>
						<th width='15%'>联系电话:</th>
						<td width='35%'>
							<input class="nestedText" type="text" name="phone" value="${phone}"  id="phone"/>&nbsp;
						</td>
					</tr>
					
					<tr>
						<th width='15%'>所属中心乡镇:</th>
						<td width='35%'>
							<s:select name="town" list="#{'统景':'统景','茨竹':'茨竹','古路':'古路','龙兴':'龙兴','其他':'其他'}"></s:select>
						</td>
						<th width='15%'>是否参加培训:</th>
						<td width='35%'>
							<s:radio  name="peixun" list="#{'是':'是','否':'否'}" ></s:radio>
						</td>
					</tr>
					
					<tr>
						<th width='15%'>所属工商所:</th>
						<td width='35%'>
							<input class="nestedText" type="text" name="gss" value="${gss}"  />
						</td>
						<th width='15%'>备注</th>
						<td width='35%'>
							<input class="nestedText" type="text" name="note" value="${note}"  />
						</td>
					</tr>
					<tr>
						<th width='15%'>成立时间:</th>
						<td width='35%'>
							<input class="Wdate" type="text" name="chengliDate" value="<fmt:formatDate value="${chengliDate}" pattern="yyyy-MM-dd"/>"  onfocus="WdatePicker()" />
						</td>
						<th width='15%'></th>
						<td width='35%'>
							
						</td>
					</tr>
					<tr>
      		<th align="center" colspan="4" style="padding:5px">
      		  <c:if test="${user.type eq 'high'}">
					<input type="button" class="submit" value="提交" onclick="if(check())submit();"/>
				</c:if>
							&nbsp;
							<input type="button" class="submit" value="返回"
								onclick="javascript:location.href='<%=basePath%>app/sys/comp/comp!list'" />
						</th>
					</tr>
				</table>

			</div>
			</div>
			
		</form>
		<script type="text/javascript">
			function check(){
				return true;
				var msg = "";
				var age = $("#age").val();
				var reg = /^120|((1[0-1]|\d)?\d)$/;
				if(!reg.test(age)){
					msg = "年龄输入有误，请检查";
				}
				alert(msg);
			}

			$(function(){
				<c:if test="${user.type eq 'low'}">
					$("#age").val("***");
					$("#idCard").val("***");
					$("#bankNo").val("***");
					$("#bankAddress").val("***");
					$("#phone").val("***");
				</c:if>
			});
		</script>
	</body>
</html>
